package edu.sctu.practice.class01.huangtianlin.assign2.one;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Rational {

    int a;
    int b;
    int sum;
    int difference;
    int product;
    int quotient;


    public Rational(int a, int b) {

        this.a = a;
        this.b = b;

    }


    public int add() {


        sum = a + b;

  return sum;

    }

    public int minus() {

        difference = a - b;

        return difference;

    }

    public int mutipuly() {

        product = a * b;

        return product;
    }

    public int divide() {

        quotient = a / b;

        return quotient;
    }

}
